﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.WorkFlows;

namespace LeadThing.AbpZeroTemplate.WorkFlows.Dtos
{
    /// <summary>
    /// 流程表-名称信息编辑用Dto
    /// </summary>
    [AutoMap(typeof(WorkFlow))]
    public class WorkFlowEditDto
    {

        /// <summary>
        ///   主键Id
        /// </summary>
        [DisplayName("主键Id")]
        public long? Id { get; set; }

        /// <summary>
        /// 流程种类
        /// </summary>
        [DisplayName("流程种类")]
        [Required]
        public int FlowType { get; set; }

        /// <summary>
        /// 流程名称
        /// </summary>
        [DisplayName("流程名称")]
        [Required]
        [MaxLength(200)]
        public string FlowName { get; set; }

        /// <summary>
        /// 流程描述
        /// </summary>
        [DisplayName("流程描述")]
        [MaxLength(500)]
        public string FlowDesc { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [DisplayName("排序")]
        public int FlowOrder { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        [DisplayName("是否可用")]
        public bool DelTag { get; set; }

    }
}
